﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZhonTai.Industry.Domain.StationFeature;
using ZhonTai.Industry.Domain.StationPlc;
using ZhonTai.Industry.Domain.WorkStation;

namespace ZhonTai.Industry.Services.MesInit
{
    /// <summary>
    /// MES设备通讯初始化服务
    /// </summary>
    public interface IMESInit
    {
        /// <summary>
        /// 初始化产品相关数据
        /// </summary>
        /// <returns></returns>
        public Task InitProductDataAsync();

        /// <summary>
        /// 启用工艺路线
        /// </summary>
        /// <param name="workStation"></param>
        /// <param name="stationFeature"></param>
        /// <returns></returns>
        public Task InitProductRouteAsync(WorkStationEntity workStation, StationFeatureEntity stationFeature);

        /// <summary>
        /// 初始化工艺采集交互
        /// </summary>
        /// <param name="workStation"></param>
        /// <returns></returns>
        public Task<bool> InitProcessParmeterAsync(WorkStationEntity workStation);

        /// <summary>
        /// 停止工艺采集交互
        /// </summary>
        /// <param name="workStation"></param>
        /// <returns></returns>
        public Task<bool> StopProcessParmeterAsync(WorkStationEntity workStation);

        /// <summary>
        /// 停止告警监控
        /// </summary>
        /// <param name="workStation"></param>
        /// <returns></returns>
        public Task<bool> StopAlarmErrAsync(WorkStationEntity workStation);

        /// <summary>
        /// PLC初始化
        /// </summary>
        /// <param name="workStation"></param>
        /// <returns></returns>
        public Task<bool> InitPlcAsync(WorkStationEntity workStation);

        /// <summary>
        /// 报警数据初始化
        /// </summary>
        /// <param name="workStation"></param>
        /// <returns></returns>
        public Task<bool> InitAlarmErrAsync(WorkStationEntity workStation);
    }
}